const template=/*html*/`
<i-form ref="form1" :model="vo"  :label-width="180" :label-colon="true" >
<fieldset class="reset"><legend class="reset">查看</legend>
<#list list as item>
<#if  (item_index>0 &&  item_index%2 ==0)  >
  </Row>     
</#if>
<#if item_index%2 ==0 >
  <Row>
</#if>
	  <i-col span="12">
          <form-item label="<#if item.comments?length lte 10>${item.comments}<#else>${item.comments[0..10]}</#if>">{{vo.${item.beanLable}}}</form-item>
      </i-col>
<#if  !item_has_next >
<#if  item_index%2 ==0 >
	  <i-col span="12"></i-col>
</#if>
  </Row>  
</#if>	
</#list>
</fieldset>
  <form-item class="float-end">
	<button type="button" class="btn  btn-sm btn-outline-secondary"   @click="routerToIndex" ><svg  width="16" height="16" fill="currentColor"  ><use xlink:href="#icon_back"/></svg>返回</button>
  </form-item>
</i-form>
`
import {ref} from 'vue'
import {useView} from 'base'
export default {
  template,
  setup() {
	const vo = ref({
	   <#list list as item>
	    ${item.beanLable}:null,
	   </#list>
	})
    const viewSetup=useView({basePath:'${modPath}<#if modPath?? && modPath !='' && !modPath?ends_with("/") >/</#if>${className?lower_case}',vo})
	return { ...viewSetup}
  }
}
